module.exports = (sequelize, DataTypes) => {
    return sequelize.define('DeviceData', {
      param_type: DataTypes.ENUM('energy', 'temperature', 'humidity'),
      value: DataTypes.DECIMAL(10, 2)
    });
  };